Skip to content

os-smoke on Windows: fix the three test bodies that always failed - #59

Merged
IvanHCenalmor merged 1 commit into
mainfrom
fix-windows-smoke
Nov 17, 2026
Merged

IvanHCenalmor merged 1 commit into
mainfrom
fix-windows-smoke

Conversation

@IvanHCenalmor

Copy link
Copy Markdown
Contributor

The os-smoke (windows-latest) job of release.yml has failed on every release, alpha.1 to alpha.7, with the same three test bodies (for example, alpha.7 was run 43601105155). The job has continue-on-error: true, so nobody saw it. In all three, the extension does the right thing on Windows. The tests assumed a POSIX machine. No extension code changes.

Body Check Cause Fix
gui_test_parity_quote_body posix_terminal_command_gives_the_shell_the_typed_value The check reads the real OS, so on Windows the dialog gives (correctly) the Windows-quoted line Set os.name to Linux for this check, the way its Windows twin sets it to Windows
gui_test_parity_trust_body 6 checks: group/other write bits and "schema next to the entry" POSIX-only by contract: the Tools trust vectors (docs/HOST_PARITY.md) mark them posix_only, and the Python registry checks them only when os.name == "posix". The QuPath registry follows the same rule. Skipped on Windows, with a printed NOTE POSIX-only checks skipped ...
gui_test_parity_trust_body prefix_is_root, interp_outside_prefix These rules apply on every OS, but the test used /bin/sh. On Windows that file doesn't exist, so the entry was refused as "interpreter missing" before these rules were checked. Use ComSpec (cmd.exe) and its drive root on Windows. On Linux and macOS the test still uses /bin/sh and /.
gui_test_retention_body RET-10_the_reported_path_is_under_results_and_has_the_data The reported path is correct, but the test compared it with resultsRoot.path + "/", and Windows paths use \ Compare Paths (startsWith compares whole path parts)

release.yml. Before this change, a PR ran the release dry run only if it changed release.yml, build.sh or tests/smoke_jar.*. A change to the bodies that smoke_os.sh runs was never checked on Windows or macOS. Now the filter also covers tests/smoke_*, tests/ci_setup_os.sh and those four bodies. This PR triggers its own dry run that way. A comment in smoke_os.sh says to keep the two lists the same.

Not changed: continue-on-error: true stays on os-smoke. The job's comment says it is best effort and never blocks a release. Making it required is a release decision.

🤖 Generated with Claude Code

…ests

The Windows smoke job (release.yml, continue-on-error) failed on every
release from alpha.1 to alpha.7 with the same three bodies. In each case the
extension behaves as intended on Windows; the tests assumed a POSIX machine.

- quote: the POSIX terminal-command check read the real OS, so on Windows it
  got the (correct) Windows line. It now sets os.name to Linux, like its
  Windows twin sets it to Windows.
- trust: six checks (group/other write bits, schema next to the entry) are
  POSIX-only by contract (Tools HOST_PARITY trust vectors, posix_only; the
  Python registry checks them under os.name == "posix"). They are skipped on
  Windows with a printed NOTE. The prefix-is-root and outside-prefix checks
  apply everywhere but used /bin/sh, which does not exist on Windows; they now
  use ComSpec (cmd.exe) and its drive root there.
- retention RET-10: the path was compared with resultsRoot.path + "/", but
  Windows paths use backslashes. It now compares Paths.

release.yml: a pull request that changes tests/smoke_* , ci_setup_os.sh or
one of the four bodies smoke_os.sh runs now gets the release dry run too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@IvanHCenalmor
IvanHCenalmor merged commit 39bed66 into main Nov 17, 2026
6 checks passed
@IvanHCenalmor
IvanHCenalmor deleted the fix-windows-smoke branch November 17, 2026 00:15
IvanHCenalmor added a commit that referenced this pull request Nov 17, 2026
…ixed-name jar change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant